import React from 'react';

class Cat extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      aaa: '1'
    }
  }
  state = {}
  render() {
    return (
      <div
        style={{
        width: '50px',
        height: '50px',
        backgroundColor: '#ff00ff',
        position: 'fixed',
        left: this.props.mouse.x - 25,
        top: this.props.mouse.y - 25,
        display: 'flex',
        justifyContent: 'center',
        alignItems: 'center'
      }}>
        {this
          .props
          .render(this.state)}
      </div>
    );
  }
}

export default Cat;